package ht.dao;

import ht.domain.DataSource;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by yanlin on 2017/11/30.
 */
public interface DataSourceDao {
    public List<DataSource> getAllDataSource();

    public DataSource getDataSource(@Param("data_source_id") String id);

    public int getDataSourceCount();

    public List<DataSource> getPageDataSource(int start, int limit);

    public int addDataSource(DataSource relation);

    public int upptDataSource(DataSource relation);

    public int deleDataSource(@Param("data_source_id") String id);

    public String getDataSourceName(String id);
}
